import Layout from "@/layout/index.vue";

const systemRoutes = [
    {
        path: '/system',
        name: 'System',
        component: Layout,
        meta: {
            title: '系统管理',
        },
        children: [
            {
                path: "user",
                name: 'User',
                component: () => import("@/views/system/user/index.vue"),
                meta: {
                    title: '用户管理',
                }
            },
            {
                path: 'role',
                name: 'Role',
                component: () => import('@/views/system/role/index.vue'),
                meta: {
                    title: '角色管理',
                }
            },
            {
                path: 'menu',
                name: 'Menu',
                component: () => import('@/views/system/menu/index.vue'),
                meta: {
                    title: '菜单管理',
                }
            }
        ],
    }
];

export default {
    sort: 2,
    routes: systemRoutes,
}